public class HW6 {
    public static void main(String[] args) {
        int i=2000;
        int num =0;
        do {
            if (i%4==0&&i%100!=0||i%400==0){
                System.out.print(i+"是闰年 ");
                num++;
            if (num%5==0){
                System.out.println();
            }
            }
            i++;
        }while (i<=2100);
    }
}
